<%@ page language="java" pageEncoding="UTF-8" %>
<%@include file="../../../common/include/inc_list.jsp" %>
<title>IT资源管理平台</title>
<!--
* 指标趋势预测管理
*
* Created by sunhaobo
* Date 2018/11/06
-->
<div class="row no-margin" style="padding: 8px 10px 10px;">
    <div class="col-sm-12">
        <%--按钮组--%>
        <div class="btn-group">
            <button id="addBtn" class="btn btn-sm btn-primary">
                <i class="ace-icon glyphicon glyphicon-plus align-center bigger-110"></i>
                增加
            </button>
            <button id="editBtn" class="btn btn-sm btn-warning">
                <i class="ace-icon glyphicon glyphicon-edit align-center bigger-110"></i>
                修改
            </button>
            <button id="delBtn" class="btn btn-sm btn-danger">
                <i class="ace-icon glyphicon glyphicon-trash align-center bigger-110"></i>
                删除
            </button>
        </div>
        <div class="pull-right">
            <button id="searBtn" class="btn btn-xs btn-info" data-toggle="collapse" href="#queryPanel">
                <i class="ace-icon fa fa-arrow-down align-center bigger-110"></i>
                查询
            </button>
        </div>
        <%--分割线--%>
        <div class="hr hr2 hr-dotted"></div>
        <%--查询框--%>
        <div class="panel panel-default no-border no-margin">
            <div id="queryPanel" class="panel-collapse collapse">
                <div class="panel-body">
                    <div class="row">
                        <div class="col-sm-12 form-horizontal">
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <label class="col-sm-3 control-label no-padding-right"> 指标编码 </label>

                                <div class="col-sm-9">
                                    <input type="text" name="search.kpiCodeLk" class="form-control"/>
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <label class="col-sm-3 control-label no-padding-right"> 指标阀值 </label>

                                <div class="col-sm-9">
                                    <input type="text" name="search.kpiThresholdvalueLk" class="form-control"/>
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <label class="col-sm-3 control-label no-padding-right"> 指标名称 </label>

                                <div class="col-sm-9">
                                    <input type="text" name="search.kpiNameLk" class="form-control"/>
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <label class="col-sm-3 control-label no-padding-right"> 指标是否线性 </label>

                                <div class="col-sm-9">
                                    <%--<input type="text" name="search.kpiTypeLk" class="form-control"/>--%>
                                    <%--<select  name="search.kpiTypeLk" class="form-control">--%>
                                    <%--<option value="0" <c:if test="${'0' eq curStatus}">selected</c:if> >0-否</option>--%>
                                    <%--<option value="1" <c:if test="${'1' eq curStatus}">selected</c:if> >1-是</option>--%>
                                    <%--</select>--%>
                                    <select name="search.kpiTypeLk" class="form-control">
                                        <option value="" selected>全部</option>
                                        <option value="0">0-否</option>
                                        <option value="1">1-是</option>
                                    </select>
                                </div>
                            </div>
                            <%--<div class="form-group col-lg-4 col-md-6 col-sm-12">--%>
                            <%--<label class="col-sm-3 control-label no-padding-right"> 指标编码 </label>--%>
                            <%--<div class="col-sm-9">--%>
                            <%--<select  name="search.kpiCodeLk" class="form-control">--%>
                            <%--<option value="1" <c:if test="${'1' eq curStatus}">selected</c:if> >男</option>--%>
                            <%--<option value="2" <c:if test="${'2' eq curStatus}">selected</c:if> >女</option>--%>
                            <%--</select>--%>
                            <%--</div>--%>
                            <%--</div>--%>
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <label class="col-sm-3 control-label no-padding-right"> 推送人 </label>

                                <div class="col-sm-9">
                                    <input type="text" name="search.kpiPushnameLk" class="form-control"/>
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-6 col-sm-12">
                                <div class="pull-right" style="margin-right: 12px;">
                                    <button id="searchBtn" class="btn btn-sm btn-info">
                                        <i class="ace-icon glyphicon glyphicon-search align-center bigger-110"></i>
                                        查询
                                    </button>
                                    <button id="resetBtn" class="btn btn-sm btn-info">
                                        <i class="ace-icon glyphicon glyphicon-repeat align-center bigger-110"></i>
                                        重置
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <%--表格列表--%>
        <table id="grid-table"></table>
        <%--分页--%>
        <div id="grid-pager"></div>

    </div><!-- /.col -->
</div>
<!-- /.row -->

<!-- Form表单 -->
<div id="tbCdeKpitrendModal" class="modal fade" tabindex="-1" role="dialog" onsubmit="return false">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close btn btn-xs btn-white" data-dismiss="modal">
                    <span>&times;</span>
                    <span class="sr-only">关闭</span>
                </button>
                <h6 class="modal-title">
                    <i class="ace-icon glyphicon glyphicon-edit align-top bigger-110"></i>
                    指标趋势预测信息
                </h6>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-12">
                        <form id="editTbCdeKpitrendForm" class="form-horizontal" role="form">
                            <input type="hidden" id="kpiId" name="kpiId" value=""/>
                            <div class="form-group">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 指标编码 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="kpiCode" placeholder="必填" class="form-control"/>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 指标阀值 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="kpiThresholdvalue" placeholder="必填" class="form-control"/>
                                        <%--<textarea name="kpiThresholdvalue" class="autosize-transition form-control" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 110px;"></textarea>--%>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 指标名称 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="kpiName" placeholder="必填" class="form-control"/>
                                        <%--<textarea name="kpiName" class="autosize-transition form-control" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 110px;"></textarea>--%>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 指标是否线性 </label>
                                    <div class="col-sm-4">
                                        <%--<input type="text" name="kpiType" placeholder="必填" class="form-control"/>--%>
                                        <select name="kpiType"  class="form-control">
                                            <option value="0">0-否</option>
                                            <option value="1">1-是</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 推送人 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="kpiPushname" placeholder="必填" class="form-control"/>
                                        <%--<textarea name="kpiPushname" class="autosize-transition form-control" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 110px;"></textarea>--%>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 描述 </label>
                                    <div class="col-sm-4">
                                        <textarea name="kpiDescribe" class="autosize-transition form-control"
                                                  style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 110px;"></textarea>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group hidden">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 删除标记 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="isDelete" class="form-control"/>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 创建人 </label>
                                    <div class="col-sm-4">
                                        <textarea name="creater" class="autosize-transition form-control"
                                                  style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 110px;"></textarea>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group hidden">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 创建时间 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="createDate" class="form-control"/>
                                    </div>
                                </div>
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 修改人 </label>
                                    <div class="col-sm-4">
                                        <textarea name="modifier" class="autosize-transition form-control"
                                                  style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 110px;"></textarea>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group hidden">
                                <div class="rowGroup">
                                    <label class="col-sm-2 control-label no-padding-right"> 修改时间 </label>
                                    <div class="col-sm-4">
                                        <input type="text" name="modifieDate" class="form-control"/>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    <i class="ace-icon fa fa-reply align-left bigger-110"></i>
                    返回
                </button>
                <button id="saveTbCdeKpitrendBtn" type="button" class="btn btn-primary">
                    <i class="ace-icon fa fa-save align-left bigger-110"></i>
                    保存
                </button>
            </div>
        </div>
    </div>
</div>

<script src="${ctx}/resource/bigdata/kpihourtrend/tbCdeKpitrendList.js"></script>